import { createApp } from 'vue'
import App from './App.vue'

import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';

import { createRouter, createWebHistory } from 'vue-router'
const routes = [
    {
        path: '/dashboard',
        name: 'Dashboard',
        component: () => import('./components/Dashboard.vue')
    },
    {
        path: '/user/list',
        name: 'UserList',
        component: () => import('./components/UserList.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router

const app = createApp(App)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
